import { findAllCalcBet } from "@/apis/calcBetApi";
import { defineStore } from "pinia";
import { ref } from "vue";

const calcBets = ref<CurveConfigInter[]>([]);
export default defineStore("calcBet", () => {
  async function all(args = {}) {
    const { data } = await findAllCalcBet(args);
    calcBets.value = data;
  }

  return { calcBets, all };
});
